import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './assets/css/normalize.css'
import './assets/css/global.css'

import directives from './directives'
Vue.use(directives)

import filters from '@/filters'
Vue.use(filters)

import gPlugins from '@/plugins'
Vue.use(gPlugins)

import compInstall from '@/plugins/installComponents'
Vue.use(compInstall);
// import GMenu from '@/components/GMenu.vue'
// import GBreadCrumb from '@/components/GBreadCrumb.vue'
// import GDropDown from '@/components/GDropDown.vue'
// import GChart from '@/components/GChart.vue'
// import GFormCreator from '@/components/GFormCreator.vue'
// import GTable from '@/components/GTable.vue'
// import GColumn from '@/components/GColumn.vue'
// import GQuerySearch from '@/components/GQuerySearch.vue'
// Vue.component(GMenu.name, GMenu)
// Vue.component(GBreadCrumb.name, GBreadCrumb)
// Vue.component(GDropDown.name, GDropDown)
// Vue.component(GChart.name, GChart)
// Vue.component(GFormCreator.name, GFormCreator)
// Vue.component(GTable.name, GTable)
// Vue.component(GColumn.name, GColumn)
// Vue.component(GQuerySearch.name, GQuerySearch)

Vue.config.productionTip = false
Vue.config.devtools = true

// 使用多环境变量
console.log(process.env.VUE_APP_URL, '测试VUE_APP_变量')

// 1. element-ui
import './element-ui';
// import ElementUI from 'element-ui'
// import 'element-ui/lib/theme-chalk/index.css'
// // Vue.use 为三方库提供的插件安装的辅助行为，提供支撑，传递Vue
// Vue.use(ElementUI) // ElementUI.install = function(Vue) { // 全局组件、挂载this.$xxx、全局指令 }
// 2. axios
import Axios from 'axios'
Vue.prototype.$ajax = Axios // 组件this.$ajax
new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount('#app')
